import { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw = {
    path: 'three',
    name: 'three',
    component: ()=>import('@/layout/components/Parent.vue'),
    meta: {
        title: 'THREE.JS',
        icon: 'ElementPlus'
    },
    children: [
        {
            path: 'demo1',
            name: 'three-demo1',
            component: () => import('@/views/three/demo1.vue'),
            meta: {
                title: 'DEMO1',
                requiresAuth: true,
                keepAlive: true
            },
        }, {
            path: 'demo2',
            name: 'three-demo2',
            component: () => import('@/views/three/demo2.vue'),
            meta: {
                title: 'DEMO2',
                requiresAuth: true,
                keepAlive: true
            },
        }
    ],
};

export default routes;
